<% provide(:title,'Log in') %>
<h1>登录</h1>

<div class='row'>
  <div class='col-md-6 col-md-offset-3'>
    <%= form_for(:session,url:login_path) do |f| %>
      
      <%= f.label :email %>
      <%= f.email_field :email,class:'form-control' %>

      <%= f.label :password %>
      <%= f.password_field :password,class:'form-control' %>
      <%= f.submit '登录',class:'btn btn-primary' %>
    <% end %>

    <p>新用户？<%= link_to '立刻注册',signup_path %></p>
  </div>
</div>